//---------------------------------------------------------------------
// <copyright file="CsdlValueAnnotation.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------

namespace Microsoft.Data.Edm.Csdl.Internal.Parsing.Ast
{
    /// <summary>
    /// Represents a CSDL value annotation.
    /// </summary>
    internal class CsdlValueAnnotation : CsdlVocabularyAnnotationBase
    {
        private readonly CsdlExpressionBase expression;

        public CsdlValueAnnotation(string term, string qualifier, CsdlExpressionBase expression, CsdlLocation location)
            : base(term, qualifier, location)
        {
            this.expression = expression;
        }

        public CsdlExpressionBase Expression
        {
            get { return this.expression; }
        }
    }
}
